package design.factory;

/**
 * 抽象工厂模式
 * 提供一个创建一系列相关或互相依赖对的的接口，而无需指定它们具体的类
 */
public class AbstractFactoryTest {
    public static void main(String[] args) {
        OracleDataBaseUtils oracleDataBaseUtils = new OracleDataBaseUtils();
        IConnetion connection = oracleDataBaseUtils.getConnection();
        connection.connect();
        ICommand command = oracleDataBaseUtils.getCommand();
        command.commond();
    }
}
